package icu.guodapeng.web.controller

import icu.guodapeng.api.service.DubboService
import org.apache.dubbo.config.annotation.Reference
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RestController

@RestController
class WebController {
    @Reference
    lateinit var dubboService: DubboService

    @GetMapping("/echo/{param}")
    fun echo(@PathVariable param: String): String {
        return dubboService.echo(param)
    }
}